//test
import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.Before;


public class CalendarCorrectTest {
	
	private CalendarCorrect mycal;
/*
	@Before
	public void setUp() {
		CalendarCorrect mycal = new CalendarCorrect();
	}
*/
	@Test
	public void testValidDate() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertTrue(mycal.validDate("07-31-2014"));
	}
	
	@Test
	public void testInValidDate() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertFalse(mycal.validDate("02-31-2014"));
	}
	
	@Test
	public void testInValidDateFormat() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertFalse(mycal.validDate("07/31/2014"));
	}

	@Test
	public void testValidTime() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertTrue(mycal.validTime("12:00:00"));
	}
	
	@Test
	public void testInValidTime() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertFalse(mycal.validTime("99:99:99"));
	}
	
	@Test
	public void testInValidTimeFormat() {
		CalendarCorrect mycal = new CalendarCorrect();
		assertFalse(mycal.validTime("99:99 AM"));
	}

}
